package objects;

import java.sql.Date;

public class EpisodeObject {

	private int idNumSp;
	private int episodeNum;
	private String episodeName;
	private String episodeDescr;
	private Date episodePrime;
	private int episode2season;
	private boolean selected;

	public EpisodeObject(int idNumSp, int episodeNum, String episodeName,
			String episodeDescr, int episode2season, Date episodePrime) {
		super();
		this.idNumSp = idNumSp;
		this.episodeNum = episodeNum;
		this.episodeName = episodeName;
		this.episodeDescr = episodeDescr;
		this.episodePrime = episodePrime;
		this.episode2season = episode2season;
	}
	
	

	public EpisodeObject() {
		// TODO Auto-generated constructor stub
	}



	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + idNumSp;
		return result;
	}



	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		EpisodeObject other = (EpisodeObject) obj;
		if (idNumSp != other.idNumSp)
			return false;
		return true;
	}



	public int getIdNumSp() {
		return idNumSp;
	}

	public void setIdNumSp(int idNumSp) {
		this.idNumSp = idNumSp;
	}

	public int getEpisodeNum() {
		return episodeNum;
	}

	public void setEpisodeNum(int episodeNum) {
		this.episodeNum = episodeNum;
	}

	public String getEpisodeName() {
		return episodeName;
	}

	public void setEpisodeName(String episodeName) {
		this.episodeName = episodeName;
	}

	public String getEpisodeDescr() {
		return episodeDescr;
	}

	public void setEpisodeDescr(String episodeDescr) {
		this.episodeDescr = episodeDescr;
	}

	public Date getEpisodePrime() {
		return episodePrime;
	}

	public void setEpisodePrime(Date episodePrime) {
		this.episodePrime = episodePrime;
	}



	public boolean isSelected() {
		return selected;
	}



	public void setSelected(boolean selected) {
		this.selected = selected;
	}



	public int getEpisode2season() {
		return episode2season;
	}



	public void setEpisode2season(int episode2season) {
		this.episode2season = episode2season;
	}

}
